<?php

class module_u_category extends a_base_module
implements i_hook_pre_controller,
           i_hook_post_controller,
           i_hook_post_controller_constructor,
           i_hook_post_system,
           i_hook_base_controller_constructor{

    public function __construct($basic_info){
        parent::__construct($basic_info);
    }

    public function exe_pre_controller(){
        Module_Extended::load_helper("category_helper", "category");

    }

    public function exe_post_controller(){

    }

    public function exe_post_controller_constructor(){
        $cat_service = new service_l_category();
        get_instance()->smarty_wrapper->assign("root_categories", service_l_category::get_root_categories());
        get_instance()->smarty_wrapper->assign("cat_menu", $cat_service->get_cat_tree_menu("menu"));
    }

    public function exe_post_system(){

    }

    public function exe_base_controller_constructor(){

    }

//    public static function exe_pre_system(){
//        echo "ok";
//    }

}
?>